package com.akeil.flash.dataprocessing;

public interface IConstantProcessor {
	/**
	 * 帧头与帧尾
	 */
	public final static byte SOF_0 = (byte) 0xAA;
	public final static byte SOF_1 = (byte) 0x55;
	public final static byte EOF_0 = (byte) 0xCC;
	public final static byte EOF_1 = (byte) 0x33;
	public final static byte EOF_2 = (byte) 0xC3;
	public final static byte EOF_3 = (byte) 0x3C;
	/**
	 * 第一部分：接受数据或状态
	 */
	public final static byte START 				= (byte) 0x07;//由准备 ==>开始
	public final static byte FLP 				= (byte) 0x08;//闪点温度
	public final static byte TMP 				= (byte) 0x09;//样品温度
	public final static byte ATM 				= (byte) 0x0A;//大气压强
	public final static byte DestopTemp 		= (byte) 0x0B;//底座温度
	public final static byte CoupleTemp 		= (byte) 0x0C;//电偶温度
	public final static byte Delta		 		= (byte) 0x0D;//温度校正值
	/**
	 * 第二部分：发送命令或参数
	 */
	public final static byte ArmUp 				= (byte) 0x0D;//悬臂上升
	public final static byte ArmDown 			= (byte) 0x0E;//悬臂下降
	public final static byte Fire 				= (byte) 0x0F;//开盖点火
	public final static byte CancelFX 			= (byte) 0x10;//取消试验
	public final static byte SttFX 				= (byte) 0x11;//开始试验
	public final static byte SettingTemp 		= (byte) 0x12;//预置温度
	public final static byte DelayTemp 			= (byte) 0x13;//滞后温度
	public final static byte TestStep 			= (byte) 0x14;//试验步骤
	public final static byte TempCorr 			= (byte) 0x15;//温度校准
	public final static byte ATMCorr 			= (byte) 0x16;//气压校准
	/*public final static byte A_power_previous 	= (byte) 0x17;//A前功率
	public final static byte A_power_next 		= (byte) 0x18;//A后功率
	public final static byte B_power_previous 	= (byte) 0x19;//B前功率
	public final static byte B_power_next 		= (byte) 0x1A;//B后功率*/
	public final static byte Connect_Device		= (byte) 0x1B;//连接仪器
	
	public final static byte param1			 	= (byte) 0x17;//试验步骤
	public final static byte param2 			= (byte) 0x18;//样品编号1
	public final static byte param3 			= (byte) 0x19;//样品编号2
	public final static byte param4 			= (byte) 0x50;//预置温度
	public final static byte param5				= (byte) 0x51;//闭口闪电
	public final static byte param6 			= (byte) 0x52;//测试时间
	public final static byte param7				= (byte) 0x53;//测试时间
	
	
	/**
	 * 待定
	 */
	
	public final static byte STS 				= (byte) 0x1C;//状态
}
